<template>
  <div>

  </div>
</template>

<script>
import qs from "qs";
import { getListApi, addListApi } from "./api/classify";
export default {
  async mounted() {
    // this.$axios.get("http://localhost:2345/classify/list").then(res => {
    //   console.log(res);
    // });
    // this.$axios({
    //   url: "http://localhost:2345/classify/list",
    //   method: "get"
    // }).then(res => {
    //   console.log(res);
    // });
    // this.$axios.post("http://localhost:2345/classify/addList",qs.stringify({name: "psn"})).then(res => {
    //   console.log(res);
    // });
    // this.$axios({
    //   url: "http://localhost:2345/classify/addList",
    //   method: "post",
    //   data: qs.stringify({name: "hyx"})
    // }).then(res => {
    //   console.log(res);
    // });
    
    let r = await getListApi()
    console.log(r);

    // let r = await addListApi({name: "psn",type: "hyx"})
    // console.log(r);
  }
};
</script>

<style scoped>
</style>